STEP 7: Let's now see what the discount amount will be!

  • Go to . Drag out Variable Display.
  • Change the display's variable name from my_display to discount_display.
  • Change the variable argument in the .Display() command from my_var to discount.
  • Change the x-coordinate argument in .Display() from -200 to -50.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)